package com.lyf.scm.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * description:
 *
 * @author: haodong
 * @data: 2020/11/4 19:39
 */
@Data
@ApiModel("ES查询入参DTO")
public class EsAggregationDTO implements Serializable {

    @ApiModelProperty("分组列集合")
    private List<String> groupColumns;
    @ApiModelProperty("聚合列集合")
    private List<String> sumColumns;
    @ApiModelProperty("查询参数")
    private EsQueryDTO esQuery;
    @ApiModelProperty("时间集合")
    private List<String> dateList;
    @ApiModelProperty("页码")
    private Integer pageNum;
    @ApiModelProperty("每页数")
    private Integer pageSize;
    /**
     * 预加载场景用，查询页面的code，直营预测predictly、其他渠道otherChannel、销售计划salesPlan、需求计划requirement
     */
    private String tableCode;
    /** 登录用户id */
    private Long userId;
    @ApiModelProperty("单位类型")
    private Long unitType;
}
